package com.stenio.fancat.mapper.shop;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.stenio.fancat.domain.shop.FcShop;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FcShopMapper extends BaseMapper<FcShop> {
    List<FcShop> selectByConditionPage(Pagination page, FcShop act);

    void updatePart(FcShop fcShop);

    void updateAll(FcShop fcShop);

    FcShop selectById(Integer id);

    List<FcShop> selectByCategoryId(Integer id);

    List<FcShop> selectHotGoodsAll();

    void updateStock(@Param("id") Integer id, @Param("stock")Integer stock,@Param("peopleCount") Integer peopleCount);

}
